package com.cb.mapper;

import com.jia.entity.Coordinate;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
* @author 王利明
* @description 针对表【t_coordinate】的数据库操作Mapper
* @createDate 2024-04-29 16:24:44
* @Entity com.cb.pojo.Coordinate
*/
public interface CoordinateMapper extends BaseMapper<Coordinate> {
    @Update("update t_coordinate set max_forty_five = max_forty_five - 1 where id=#{cid}")
    void updatef(Integer cid);
    @Update("update t_coordinate set max_sixty = max_sixty - 1 where id=#{cid}")
    void updates(Integer cid);

    @Update("update t_coordinate set max_forty_five = max_forty_five + 1 where id=#{cid}")
    void updateupf(Integer cid);
    @Update("update t_coordinate set max_sixty = max_sixty + 1 where id=#{cid}")
    void updateups(Integer cid);
}




